package com.gongzhiyun.springboot3test.vo;

import com.gongzhiyun.springboot3test.validate.CommonValidate;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;

@Data
public class UserParams implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;

    @NotBlank(message = "账号不能为空",groups = {CommonValidate.reg.class})
    private String username;
    @NotBlank(message = "密码不能为空",groups = {CommonValidate.reg.class})
    private String password;
}
